﻿using System;

namespace SimpleDelegates
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            Func<double, double> func = new Func<double, double>(MathOperations.MultiplyByTwo);
            Func<double, double> func1 = new Func<double, double>(MathOperations.Square);
            double value1 = func(1.0);
            double value2 = func1(10.0);

            Console.WriteLine($"ByTwo：{value1} , Square：{value2}");


        }
    }
}
